@page "/WithParameters/Name/{firstName}"
@page "/WithParameters/Name/{firstName}/LastName/{lastName}"
<div id="test-info">Your full name is @FirstName @LastName.</div>
<Links />

@functions
{
    [Parameter] string FirstName { get; set; }

    [Parameter] string LastName { get ; set; }

    public override Task SetParametersAsync(ParameterCollection parameters)
    {
        // Manually reset parameters to defaults so we don't retain any from an earlier URL
        FirstName = default;
        LastName = default;
        return base.SetParametersAsync(parameters);
    }
}
